package com.tsystems.school.jabber;

public enum MessageType {
	LOGIN(1, ParsingType.LONG), 
	NEWUSER(2, ParsingType.LONG), 
	MESSAGE(3, ParsingType.EASY), 
	LOGOUT(4, ParsingType.LONG), 
	FILE(5, ParsingType.LONG), 
	USERDATA(6, ParsingType.LONG), 
	CONFLIST(7, ParsingType.LONG), 
	CONFDATA(8, ParsingType.LONG),
	OK(9, ParsingType.EASY),
	CANCEL(10, ParsingType.EASY),
	FINDUSER(11, ParsingType.LONG),
	USERLIST(12, ParsingType.LONG);
	
	private int idx;
	private ParsingType pt;
	
	MessageType(int id, ParsingType pt){
	 idx = id;
	}

  public int getIdx() {
    return idx;
  }
  
  public ParsingType getPt() {
    return pt;
  }

}
